<?php
echo <<<EOT
<?php
/** @var {$this->modelClass}Controller \$this */
/** @var {$this->modelClass} \$model */

\$this->pageTitle = '{$this->modelName}'; \n
EOT;

echo "\$this->breadcrumbs=array(
	'{$this->modelName}'
);\n";
?>
?>

<div class="page-header">
<h1><?echo $this->modelName; ?>
	<?echo "<?php echo CHtml::link('创建', array('create'), array('class' => 'btn btn-link')); ?>" ?>
</h1>
</div>

<?php echo "<?php"; ?> $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'<?php echo $this->class2id($this->modelClass); ?>-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
	<?php
	$count = 0;
	foreach ($this->tableSchema->columns as $column) {
		if (++$count == 7) {
			echo "\t\t/*\n";
		}
		echo "\t\t'" . $column->name . "',\n";
	}
	if ($count >= 7) {
		echo "\t\t*/\n";
	}
	?>
	array(
		'class'=>'bootstrap.widgets.TbButtonColumn',
	),
),
)); ?>
